<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<div th:replace="dashboard/header :: header"></div>
	<body id="page-top">
		<div th:replace="dashboard/nav :: header"></div>
		
		<div id="wrapper">
			<div th:replace="dashboard/sidebar:: sidebar"></div>
			
			<!-- main_start -->
			<main class="main" style="width:100%"> 
				<iframe th:src="@{/manager/main}" style="width: 100%;" name="main" frameborder="0" scrolling="no" id="external-frame" onload="setIframeHeight(this)"></iframe> 
			</main>
			<!-- main_end -->	
		</div>
		
		<script type="text/javascript">
			function setIframeHeight(iframe) {
				
				if (iframe) {
					var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
					if (iframeWin.document.body) {
						// iframe.height = h ; // iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
						iframe.height = iframeWin.document.body.scrollHeight<850?850:iframeWin.document.body.scrollHeight;
					}
				}
			};
		</script>
	</body>
</html>
